<?php
include("common/header.html");
include("common/left.html");
?>

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>

<body>
<form method="post" action="loginProcess.php">
<table>
<tr>
<td>账 号</td><td><input name='account' type='text' value=""/></td>
</tr>
<tr>
<td>密  码</td><td><input name='password' type='password'/></td>
</tr>
<tr>
<td>验证码: </td>
<td><input name="yanzheng" id="virify" type="text" size="4"><img src="checks.php" onclick="this.src='checks.php?aa='+Math.random()"/></td>
</tr>
<tr>
<td><input name='action' type='submit' value='登陆'/></td><td><a name='action' value='注册' href="yunding_register.html"/>注册</a></td>
</tr>
</table>
</form>
<body>
<?php
if(!empty($_GET['ret']))
{
	switch($_GET['ret'])
	{
		case '1':
			echo "<script>alert('验证码错误');</script>";
			break;
		case '2':
			echo "<script>alert('验证码不能为空');</script>";
			break;
        case '3':
            echo "<script>alert('密码错误');</script>";
			break;
	}
}
if(!empty($_GET['errno']))
{
	$errno=$_GET['errno'];
	if($errno==1)
	{
		echo "<br/><font color='red' size='3'>账号密码不能为空</font>";
	}
}
?>

</html>
<?include('common/footer.html')?>